package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduVideo;
import com.atguigu.eduservice.entity.EduVideoInfoForm;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程视频 服务类
 * </p>
 *
 * @author dayouzi
 * @since 2022-10-18
 */
public interface EduVideoService extends IService<EduVideo> {

    boolean getCountByChapterId(String id);

    void saveVideoInfo(EduVideoInfoForm eduVideoInfoForm);

    EduVideoInfoForm getVideoInfoFormById(String id);

    void updateVideoInfoById(EduVideoInfoForm eduVideoInfoForm);

    boolean removeVideoInfoById(String id);

    boolean removeByCourseId(String courseId);
}
